package cn.gson.springboot.model.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.pojos.RegistrFrom;

@Mapper
public interface RegistrFromMapper {
      //新增挂号
	public void addregistrfrom(@Param("clinic_id") Integer clinic_id,
														 @Param("registrtype_id") Integer registrtype_id,
														 @Param("section_id")Integer section_id,
														 @Param("registrfrom_lookmoney")BigDecimal registrfrom_lookmoney,
														 @Param("registrfrom_moneytype")Integer registrfrom_moneytype,
														 @Param("registrfrom_name") String registrfrom_name,
														 @Param("registr_state") Integer registr_state);
	
	//挂号查询所有或根据id
   public  JSONArray  selectRegistrFromAll(/*@Param("cliniccardid") String cliniccardid*/@Param("clinicname") String clinicname); 

  //修改
   public void updatetriagestate(@Param("regid") Integer regid,@Param("registr_state") Integer registr_state,
		   													 @Param("dname") String dname);
 
   public void updatecallstate(@Param("regid") Integer regid,@Param("registr_call") Integer registr_call);

  // 挂号打印票据
   public  JSONArray RegistrTicket();
   
  //统计金额
    public JSONArray renshu(@Param("dates") Integer dates);
   
 
};
